package com.hao.controller;

import com.hao.mapper.UserMapper;
import com.hao.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@Controller
public class MemberController {
    @Autowired
    UserMapper usermapper;
    @GetMapping("/ml")
    public String memberList(Model model){
        User selectall = usermapper.selectall();
        model.addAttribute("users",selectall);
        return "memlist";
    }
    @GetMapping("/mp")
    public String mempwd(){
        return "mempwd";
    }
}
